/**
 * 
 */
package com.ls.fw.imgserver.controller;

import java.io.InputStream;

import javax.servlet.http.HttpServletRequest;

import com.ls.fw.imgserver.util.PathUtil;
import com.ls.fw.web.file.down.BaseDown;

/**
 * @author Defender
 * 2014年2月22日 下午5:50:42
 */
public class FileDown extends BaseDown{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	
	@Override
	protected String getPath(HttpServletRequest request) {
//		System.out.println(baseDir);
//		System.out.println(contextDir);
		String abolutePath = PathUtil.getPath(request, this.contextDir);
		this.logger.debug("下载文件绝对路径："+abolutePath);
		return abolutePath;
	}
	
	@Override
	protected InputStream getInputStream(HttpServletRequest request) {
		return null;
	}
}
